package com.bms.mapper;

import com.bms.common.request.ExpenseReq;
import com.bms.common.response.ActivityResponse;
import com.bms.common.response.ExpenseResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ExpenseManager {

    int getSearchCount(Map<String, Object> params);

    List<ExpenseResponse> searchActivitiesByPage(Map<String, Object> params);

    void addExpense(@Param("list") List<ExpenseReq> list);

    List<ExpenseResponse> getExpenseTotalList();

    List<ExpenseResponse> getLineSummaryList();

    List<ExpenseResponse> getCompanySummaryList(@Param("companyCode") String companyCode);

    List<ExpenseResponse> getPersonnelCodeSummaryList(@Param("personnelCode") String personnelCode);
}
